//
//  SettingViewController.m
//  VisitorFacetestingSystem
//
//  Created by 张斌 on 16/7/8.
//  Copyright © 2016年 YueShiKeJi. All rights reserved.
//

#import "SettingViewController.h"
#import "LoadVcManager.h"

@interface SettingViewController ()
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *height;

@end

@implementation SettingViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"fanhuijian"] style:UIBarButtonItemStylePlain target:self action:@selector(exit)];
}

- (void)exit{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)viewDidLayoutSubviews{
    [super viewDidLayoutSubviews];
    
    self.height.constant = [UIScreen mainScreen].bounds.size.height * 150/667;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

// 让分组的留白取消
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
    return 10;
}

- (IBAction)tuichu:(id)sender {
    [self presentViewController:[LoadVcManager sbVCWithsbname:@"LoginViewController"] animated:YES completion:nil];
   
}


@end
